import Layout from "@/layout";

const baseTemplateManageRouter = {
  path: "/base-template-manage",
  component: Layout,
  redirect: "noRedirect",
  name: "BaseTemplateManage",
  meta: { title: "功能模板", icon: "system-settings" },
  children: [
    {
      path: "base-template-function-menu-management",
      name: "baseTemplateFunctionMenuManagement",
      // component: () =>
      // import("@/views/production-operation-maintenance/basic-info-manage/functional-audit/index"),
      component: { render(c) { return c('router-view') } },
      redirect: 'menuTemplateManagement',
      meta: { title: "功能权限", icon: "agricultural-type-management" },
      children: [
        {
          path: "menu-template-management",
          name: "menuTemplateManagement",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-function-menu-management/menu-management/index"),
          meta: { title: "菜单管理", hidden: true, icon: "caidan" }
        },
        {
          path: "function-template-management",
          name: "FunctionTemplateManagement",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-function-menu-management/function-management/index"),
          meta: { title: "功能管理", hidden: true, icon: "agricultural-type-management" }
        },
        {
          path: "page-template-configuration",
          name: "PageTemplateConfiguration",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-function-menu-management/page-configuration/index"),
          meta: { title: "页面", hidden: true, icon: "agricultural-type-management" }
        },
        {
          path: "page-template-elements",
          name: "PageTemplateElements",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-function-menu-management/page-elements/index"),
          meta: { title: "页面元素", hidden: true, icon: "agricultural-type-management" }
        },
        {
          path: "menu-template-page-management",
          name: "menuTemplatePageManagement",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-function-menu-management/menu-page-management/index"),
          meta: { title: "菜单&页面", hidden: true, icon: "agricultural-type-management" }
        },
        {
          path: "function-template-elements-management",
          name: "functionTemplateElementsManagement",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-function-menu-management/function-elements-management/index"),
          meta: { title: "功能&元素", hidden: true, icon: "agricultural-type-management" }
        },
        {
          path: "function-template-menu-management",
          name: "functionTemplateMenuManagement",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-function-menu-management/function-menu-management/index"),
          meta: { title: "功能&菜单", hidden: true, icon: "agricultural-type-management" }
        }
      ]
    },
    {
      path: "base-template-system-management",
      name: "baseTemplateSystemManagement",
      // component: () =>
      // import("@/views/production-operation-maintenance/basic-info-manage/functional-audit/index"),
      component: { render(c) { return c('router-view') } },
      redirect: 'base-system-management',
      meta: { title: "系统权限", icon: "agricultural-type-management" },
      children: [
        {
          path: "system-template-configuration",
          name: "SystemTemplateConfiguration",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-system-management/system-configuration/index"),
          meta: { title: "系统配置", hidden: true, icon: "agricultural-type-management" }
        },
        {
          path: "system-template-binding-function",
          name: "systemTemplateBindingFunction",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-system-management/system-binding-function/index"),
          meta: { title: "系统&功能", hidden: true, icon: "agricultural-type-management" }
        }
      ]
    },
    {
      path: "base-template-system-managements",
      name: "baseTemplateSystemManagements",
      // component: () =>
      // import("@/views/production-operation-maintenance/basic-info-manage/functional-audit/index"),
      component: { render(c) { return c('router-view') } },
      redirect: 'base-system-management',
      meta: { title: "模板", icon: "agricultural-type-management" },
      children: [
        {
          path: "system-template-configurations",
          name: "SystemTemplateConfigurations",
          component: () =>
            import("@/views/production-operation-maintenance/base-template-manage/base-system-managements/system-configuration/index"),
          meta: { title: "系统配置", hidden: true, icon: "agricultural-type-management" }
        }
        // {
        //   path: "system-template-binding-functions",
        //   name: "systemTemplateBindingFunctions",
        //   component: () =>
        //     import("@/views/production-operation-maintenance/base-template-manage/base-system-managements/system-binding-function/index"),
        //   meta: { title: "系统&功能", hidden: true, icon: "agricultural-type-management" }
        // }
      ]
    }
  ]
};

export default baseTemplateManageRouter;
